/*
 *  MonitorController.h
 *  project8
 *
 *  Created by Luca Gobbo, Erwin Bonnet on 21-06-10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef _MONITORCONTROLLER_H
#define _MONITORCONTROLLER_H

#define CUR 0
#define AVG 1
#define HIG 2

#include "ButtonListener.h"
#include "Button.h"
#include "HeartBeatController.h"
#include "string.h"
#include "LCDDisplay.h"
//#include "pRTOS.h"



class MonitorController : public ButtonListener /*, public cTask*/ {
public:
    MonitorController();
    void run();
    virtual unsigned char buttonDown(Button b);
    virtual unsigned char buttonUp(Button b);
    void setDisplayMode();
    void eraseData();
    void switchToStandby();
    void timeout();
private:
    Button * mode;//key A
    Button * set;//key 1
    HeartBeatController theHeartBeatCtrl;
    unsigned char displayMode;
    char disp[11];
    char val[4];
    LCDDisplay theDisplay;
    unsigned char i,j;
};


#endif
